Skip to content

PDFCanvas.DrawText Method

Overloads

Name Description
DrawText(String,PDFFont,PDFBrush,Double,Double) Draws a line of text specified by a string and a pair of coordinates.
DrawText(String,PDFFont,PDFPen,PDFBrush,Double,Double) Draws a line of text specified by a string and a pair of coordinates.
DrawText(String,PDFFont,PDFBrush,Double,Double,Double) Draws a line of text specified by a string and a pair of coordinates.
DrawText(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double) Draws a line of text specified by a string and a pair of coordinates.
DrawText(String,PDFFont,PDFBrush,Double,Double,Double,PDFTextAlign) Draws a line of text specified by a string and a pair of coordinates.
DrawText(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,PDFTextAlign) Draws a line of text specified by a string and a pair of coordinates.

DrawText(String,PDFFont,PDFBrush,Double,Double)

Draws a line of text specified by a string and a pair of coordinates.

C#
public void DrawText(string text, PDFFont font, PDFBrush brush, double x, double y)

Parameters

text String

the string to be drawn.

font PDFFont

a PDFFont object used to represent the string.

brush PDFBrush

a PDFBrush object used to fill the interior of the string.

x Double

the x coordinate of the top left corner of the drawn text.

y Double

the y coordinate of the top left corner of the drawn text.

DrawText(String,PDFFont,PDFPen,PDFBrush,Double,Double)

Draws a line of text specified by a string and a pair of coordinates.

C#
public void DrawText(string text, PDFFont font, PDFPen pen, PDFBrush brush, double x, double y)

Parameters

text String

the string to be drawn.

font PDFFont

a PDFFont object used to represent the string.

pen PDFPen

a PDFPen object used to draw the border of the string.

brush PDFBrush

a PDFBrush object used to fill the interior of the string.

x Double

the x coordinate of the top left corner of the drawn text.

y Double

the y coordinate of the top left corner of the drawn text.

DrawText(String,PDFFont,PDFBrush,Double,Double,Double)

Draws a line of text specified by a string and a pair of coordinates.

C#
public void DrawText(string text, PDFFont font, PDFBrush brush, double x, double y, double orientation)

Parameters

text String

the string to be drawn.

font PDFFont

a PDFFont descendant object used to represent the string.

brush PDFBrush

a PDFBrush object used to fill the interior of the string.

x Double

the x coordinate of the top left corner of the drawn text.

y Double

the y coordinate of the top left corner of the drawn text.

orientation Double

the orientation of the text.

Remarks

The text is drawn rotated around the top left corner with a number of degrees specified by the orientation parameter.

DrawText(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double)

Draws a line of text specified by a string and a pair of coordinates.

C#
public void DrawText(string text, PDFFont font, PDFPen pen, PDFBrush brush, double x, double y, double orientation)

Parameters

text String

the string to be drawn.

font PDFFont

a PDFFont descendant object used to represent the string.

pen PDFPen

a PDFPen object used to draw the border of the string.

brush PDFBrush

a PDFBrush object used to fill the interior of the string.

x Double

the x coordinate of the top left corner of the drawn text.

y Double

the y coordinate of the top left corner of the drawn text.

orientation Double

the orientation of the text.

Remarks

The text is drawn rotated around the top left corner with a number of degrees specified by the orientation parameter.

DrawText(String,PDFFont,PDFBrush,Double,Double,Double,PDFTextAlign)

Draws a line of text specified by a string and a pair of coordinates.

C#
public void DrawText(string text, PDFFont font, PDFBrush brush, double x, double y, double orientation, PDFTextAlign align)

Parameters

text String

the string to be drawn.

font PDFFont

a PDFFont descendant object used to represent the string.

brush PDFBrush

a PDFBrush object used to fill the interior of the string.

x Double

the x coordinate of the printing point.

y Double

the y coordinate of the printing point.

orientation Double

the orientation of the text.

align PDFTextAlign

a PDFTextAlign enumeration member specifying the aligment of the text.

Remarks

The text is drawn rotated around the printing point with a number of degrees specified by the orientation parameter. Also, the text is drawn aligned relative to the printing point.

DrawText(String,PDFFont,PDFPen,PDFBrush,Double,Double,Double,PDFTextAlign)

Draws a line of text specified by a string and a pair of coordinates.

C#
public void DrawText(string text, PDFFont font, PDFPen pen, PDFBrush brush, double x, double y, double orientation, PDFTextAlign align)

Parameters

text String

the string to be drawn.

font PDFFont

a PDFFont descendant object used to represent the string.

pen PDFPen

a PDFPen object used to draw the border of the string.

brush PDFBrush

a PDFBrush object used to fill the interior of the string.

x Double

the x coordinate of the printing point.

y Double

the y coordinate of the printing point.

orientation Double

the orientation of the text.

align PDFTextAlign

a PDFTextAlign enumeration member specifying the aligment of the text.

Remarks

The text is drawn rotated around the printing point with a number of degrees specified by the orientation parameter. Also, the text is drawn aligned relative to the printing point.